<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../Vue全家桶_stu/03_依赖包/vue.js"></script>
</head>
<body>
    <div id="root">
        <!-- v-text实质就是插值语法{{}},只能解析纯文本输出到页面 -->
        <h1 v-text="mes"></h1>
        <h1 v-text="mess"></h1>
        <!-- v-html实质也是插值语法{{}},可以解析标签和文本，然后输出到页面 -->
        <h1 v-html="mess"></h1>
    </div>
    <script>
        const vm = new Vue({
            el:'#root',
            data(){
                return{
                    mes:'我爱你塞北的雪',
                    mess:'<a href="##">我爱你塞北的雪</a>'
                }
            }
        })
    </script>
</body>
</html>